﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PDX.Validation
{
    /// <summary>
    /// Capable of examining a <see cref="Context"/> and determining if the
    /// property is in error.
    /// </summary>
    public interface IValidationAdapter
    {
        /// <summary>
        /// Gets a validation failure message.
        /// Return null or String.Empty to indicate there is no error.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <returns></returns>
        string GetMessage(Context context);
    }
}
